<template>
  <ul>
    <li>
      <div><span class="name">{{attr.name}}</span>: <span class="type">{{attr.type}}</span></div>
      <div class="remark" v-html="attr.remark"></div>
    </li>
    <tmpl-attr v-for="item in attr.attrs" :attr="item"></tmpl-attr>
  </ul>
</template>

<script>
  export default {
    name: 'tmpl-attr',
    props: ['attr']
  }
</script>

<style scoped>
  .name {
    font-weight: bold;
  }

  .type {
    font-size: 12px;
    color: #666;
  }
  
  .remark {
    padding: 5px 0;
  }
</style>
